package com.gxa.weixing.core.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * @ClassName DayUtil
 * @Author: ws
 * @date 2022/1/10 16:37
 */
public class DayUtil {

    public static String someDay(Integer day){
        Calendar cal   =   Calendar.getInstance();
        cal.add(Calendar.DATE,  + day);
        String yesterday = new SimpleDateFormat( "yyyy-MM-dd").format(cal.getTime());
        return yesterday+" 00:00:00";
    }

}
